package com.loongtech.bi.entity.pay;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "td_adv_newuserltvbyurl")
public class EntityAdvNewUserLTV implements Serializable {
    private static final long serialVersionUID = 2L;

    @Id
    @Column(columnDefinition = "varchar(16)")
    private String startday;  // 开始时间
    @Id
    @Column(columnDefinition = "varchar(16)")
    private String endday;  // 结束时间
    @Id
    @Column(columnDefinition = "varchar(32)")
    private String serverid;
    @Id
    @Column(columnDefinition = "varchar(32)")
    private String channelid;
    @Id
    @Column(columnDefinition = "varchar(16)")
    private String platformid;
    @Id
    @Column(columnDefinition = "varchar(16)")
    private String url;
    @Transient
    private String channelName;
    @Transient
    private String agent;
    @Column(columnDefinition = "bigint(20) NOT NULL default 0")
    private long addcash_user;
    @Column(columnDefinition = "bigint(20) NOT NULL default 0")
    private long cashadd;


    /**
     * 返回主键字符串
     *
     * @return
     */
    public String getKey() {
        return startday + "-" + url + "-" + channelName + "-" + agent;
    }

    public String getServerid() {
        return serverid;
    }

    public void setServerid(String serverid) {
        this.serverid = serverid;
    }

    public String getChannelid() {
        return channelid;
    }

    public void setChannelid(String channelid) {
        this.channelid = channelid;
    }

    public String getPlatformid() {
        return platformid;
    }

    public void setPlatformid(String platformid) {
        this.platformid = platformid;
    }

    public long getAddcash_user() {
        return addcash_user;
    }

    public void setAddcash_user(long addcash_user) {
        this.addcash_user = addcash_user;
    }

    public String getStartday() {
        return startday;
    }

    public void setStartday(String startday) {
        this.startday = startday;
    }

    public String getEndday() {
        return endday;
    }

    public void setEndday(String endday) {
        this.endday = endday;
    }

    public long getCashadd() {
        return cashadd;
    }

    public void setCashadd(long cashadd) {
        this.cashadd = cashadd;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }
}